﻿<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh-CN">
<head>
<%@ include file="/include/include.jsp" %>
<style type="text/css">
<!--




-->
</style>
</head>

<body>
	
	<%@ include file="/include/header.jsp" %>

	<%@ include file="/include/menu.jsp" %>
	
			
	<div id="mainContent">
		<h2><a href="${ctx}/${menu.url}">${menu.description}</a>&nbsp;-&nbsp;<a href="${ctx}/${empty currViewBarSubMenu_ ? submenu.url : currViewBarSubMenu_.url}">${empty currViewBarSubMenu_ ? submenu.description : currViewBarSubMenu_.description}</a></h2>
		
		<div class="tool-bar">
			<div title="${menu.description} - ${empty currViewBarSubMenu_ ? submenu.description : currViewBarSubMenu_.description} - 查询${empty currViewBarSubMenu_ ? submenu.description : currViewBarSubMenu_.description}"  href="${ctx}/system/sign/search" class="modal-window modal-link">过滤查询</div>
		</div>
		
		<div class="sarch-bar" id="searchDiv">
		</div>
		
		<div class="grid-list">
			<table class="grid" cellspacing="0">
				<thead>
					<tr>
					    <td width="80">用户</td>
						<td width="80">签到</td>
						<td width="80">签到类型</td>
						<td width="80">签到时间</td>
						<td width="80">距离</td>
						<td width="80">设备类型</td>
						<td width="80">设备编号</td>
						<td width="80">服务器版本</td>
						<td width="80">gps时间</td>
						<td width="80">迟到时间</td>
						<td width="80">gps类型</td>
						<td width="80">经度</td>
						<td width="80">维度</td>
						<td width="80">描述信息</td>
						<td width="80">签到地址</td>
						<td width="80">服务器时间</td>
						<td width="50">删除</td>
						
					</tr>
				</thead>
				<tbody>
					<c:forEach var="sign" items="${map}" varStatus="status">
						<tr onmouseover="this.style.backgroundColor= '#A0CFEC'" onmouseout="this.style.backgroundColor= '#ffffff'">
						<td>${sign.userId }</td>												
						<c:choose>
					    <c:when test="${sign.actionType =='00' }">
					    <td>公司签到</td>
					    </c:when>
					      <c:when test="${sign.actionType=='01' }">
					    <td>外勤签到</td>
					    </c:when>
					      <c:when test="${sign.actionType=='02' }">
					    <td>请假</td>
					    </c:when>	
					    <c:otherwise>
					      <td></td>
					    </c:otherwise>			    
					    </c:choose>					    
					  <c:choose>
					       <c:when test="${sign.actionType=='00'&&sign.actionSubType=='00' }">
					    <td>我来了</td>
					    </c:when>
					    
					     <c:when test="${sign.actionType=='00'&&sign.actionSubType=='01' }">
					    <td>我走了</td>
					    </c:when>
					    					    
					     <c:when test="${sign.actionType=='00'&&sign.actionSubType=='02' }">
					    <td>晚到</td>
					    </c:when>
				
					    <c:when test="${sign.actionType=='01'&&sign.actionSubType=='10' }">
					    <td>我开工了</td>
					    </c:when>
					    
					      <c:when test="${sign.actionType=='01' &&sign.actionSubType=='11' }">
					    <td>我收工了</td>
					    </c:when>
					    
					    
					      <c:when test="${sign.actionType=='01'&&sign.actionSubType=='12' }">
					    <td>到了</td>
					    </c:when>
					   
					      <c:when test="${sign.actionType=='01'&&sign.actionSubType=='13' }">					      
					    <td>走了</td>
					    </c:when>
					    
					    <c:when test="${sign.actionType=='02'&&sign.actionSubType=='20' }">					      
					    <td>年假</td>
					    </c:when>	
					    
					    <c:when test="${sign.actionType=='02'&&sign.actionSubType=='21' }">					      
					    <td>病假</td>
					    </c:when>
					    
					    <c:when test="${sign.actionType=='02'&&sign.actionSubType=='22' }">					      
					    <td>调休</td>
					    </c:when>
					    
					     <c:when test="${sign.actionType=='02'&&sign.actionSubType=='23' }">					      
					    <td>事假</td>
					    </c:when>	
					        <c:otherwise>
					      <td></td>
					    </c:otherwise>					    					    				    
					    </c:choose>
							<td>${sign.signinTime }</td>
							<td>${sign.distance }</td>	
							<td>${sign.deviceType }</td>
							<td>${sign.deviceId }</td>
						    <td>${sign.appVersion }</td>
							<td>${sign.gpsTime }</td>
							<td>${sign.lateTime }</td>
							<td>${sign.gpsType }</td>
							<td>${sign.locLatitude }</td>
							<td>${sign.locLongtitude }</td>
							<td>${sign.action_desc }</td>
							<td>${sign.address }</td>
						    <td>${sign.serverTime }</td>
							<td class="tool-bar-tr">
								<a href="javascript:doDelteNormalValidate('您确实要删除该记录吗？删除后将不能恢复,请确认!','对不起，该对象与其他业务对象有关联关系，不能删除!','entity_sign','id',${sign.id},'${ctx}/system/sign/list')">
									<img border="0" src="${ctx}/static/images/delete.png"   alt="删除业务对象" />
								</a>
							</td>
						</tr>
					</c:forEach>
					
					
				</tbody>
			</table>
			<t:page action="${ctx}/system/sign/list"></t:page>
		</div>
	</div>
	
	<%@ include file="/include/script.jsp" %>

</body>

</html> 